-- GENERATED SPELL FOR [Death Talon Captain] --


function spell0_12467(pUnit, Event) --@Aura of Flames,Self--
pUnit:FullCastSpellOnTarget(22436,pUnit)
pUnit:RegisterEvent('Sorts_12467', 594, 1)
end

function spell1_12467(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12467', 616, 1)
end

function spell2_12467(pUnit, Event) --@Commanding Shout,Self--
pUnit:FullCastSpellOnTarget(22440,pUnit)
pUnit:RegisterEvent('Sorts_12467', 287, 1)
end

function spell3_12467(pUnit, Event) --@Mark of Detonation,n/a--
pUnit:FullCastSpellOnTarget(22438,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12467', 30291, 1)
end

function Sorts_12467(pUnit, Event)
local choix_sorts_12467 = math.random(0, 3)
if choix_sorts_12467 == 0 then
pUnit:RegisterEvent('spell0_12467', 1, 1)
end
if choix_sorts_12467 == 1 then
pUnit:RegisterEvent('spell1_12467', 1, 1)
end
if choix_sorts_12467 == 2 then
pUnit:RegisterEvent('spell2_12467', 1, 1)
end
if choix_sorts_12467 == 3 then
pUnit:RegisterEvent('spell3_12467', 1, 1)
end
end

function mob12467_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12467', math.random(1500, 3000), 1)
end

function mob12467_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12467_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12467_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12467, 1, 'mob12467_Action')
RegisterUnitEvent(12467, 2, 'mob12467_Leave')
RegisterUnitEvent(12467, 3, 'mob12467_Kill')
RegisterUnitEvent(12467, 4, 'mob12467_Die')
